package com.game.commons.network;

/**
 * 断线任务
 * @author 杜祥
 * @create 2013-6-1
 */
public class DisconnectionTask implements Runnable 
{
	
	/**
	 * 连接
	 */
	private MMOConnection connection;
	
	/**
	 * 构造一个关闭连接的任务，此任务将由<code>DisconnectionThreadPool</code>执行
	 * @param connection
	 * @see com.game.commons.network.DisconnectionThreadPool
	 */
	public DisconnectionTask(MMOConnection connection)
	{
		this.connection = connection;
	}
	
	
	/**
	 * @see java.lang.Runnable#run()
	 */
	@Override
	public void run() 
	{
		this.connection.onDisconnect();
	}

}
